<?php
/**
 * Created by PhpStorm.
 * User: simon
 * Date: 2019/11/27
 * Time: 9:30
 */

namespace p5\objects;


class PHPConfigUtils
{
    static public function getUploadTmpDir()
    {
        $path = ini_get('upload_tmp_dir');
        if (empty($path)) {
            $path = realpath("./");
        }
        $path = FileUtils::to_linux_path($path);
        if (substr($path, -1) !== '/') {
            $path .= "/";
        }
        return $path;
    }
}